package com.samuel.blog.service;

import com.samuel.blog.entity.JurisdictionEntity;

import java.util.List;

/**
 * @author kaiji
 */
public interface JurisdictionService extends BaseService<JurisdictionEntity, String> {

	/**
	 * 查询全部的顶级菜单
	 * @return
	 */
	List<JurisdictionEntity> selectByTop();

	/**
	 * 根据角色ID查询角色拥有的权限 
	 * @param roleId
	 * @return
	 */
	List<JurisdictionEntity> selectByRoleId(String roleId);

	/**
	 * 根据编码查询对象
	 * @param code
	 * @return
	 */
	JurisdictionEntity selectByCode(String code);

	/**
	 * 批量删除
	 * @param ids  权限表主键集合
	 * @return
	 */
	int delete(String[] ids);

}
